$iconColor: #fff;
$bkColorSty: rgba(222, 219, 219, 0.114);
$logoColor: #f1f1f1;
$splitColor: rgb(220, 220, 224);
$bottomBorCor: #eeebeb;
$dimFontCor: #b0b0b0;
$opeMenuHovCol: #e4e4e4;
$closeIconColor: rgb(103, 102, 102);
$dynamicRemark: #52a8fd;
$thumbColor: rgb(247, 8, 8);

@mixin noselect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@mixin setWidHei($wid, $hei) {
    width: $wid;
    height: $hei;
}

.chat {
    &-col {
        height: 500px;

        &__middle {
            border-right: 1px solid $splitColor;
        }
    }
}
.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

.clearfix {
    @mixin thame {
        content: "";
        display: table;
    }

    &::before {
        @include thame;
        clear: both;
    }

    &::after {
        @include thame;
        clear: both;
    }
}

@mixin opearMenu($zIndex, $fontSize) {
    position: absolute;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.12);
    background-color: #fff;
    padding: 2px;
    font-size: $fontSize;
    overflow: hidden;
    margin: 0;
    z-index: $zIndex;

    & > dt {
        white-space: nowrap;
        padding: 5px 35px 5px 20px;
        margin-bottom: 1px;
        transition: background-color 0.2s;
        cursor: pointer;

        &:hover {
            background-color: $opeMenuHovCol;
        }
    }
}

@mixin promptMessCount($size, $wid, $hei, $scale) {
    transform: scale($scale);
    font-size: $size;
    @include setWidHei($wid, $hei);
    line-height: $hei;
    text-align: center;
    background-color: #f44545;
    color: #fff;
    border-radius: 50%;
}

@mixin fade($time, $speed) {
    &-enter-active,
    &-leave-active {
        transition: opacity $time $speed;
    }

    &-enter-from,
    &-leave-to {
        opacity: 0;
    }
}

@mixin centerVertically($size) {
    height: $size;
    line-height: $size;
}

@mixin submit($bkColor, $color, $hoverBkColor, $activeBkColor) {
    border-radius: 3px;
    background-color: $bkColor;
    color: $color;
    transition: background-color 0.1s ease-in;
    border: 0;
    cursor: pointer;
    @include noselect;

    &:hover {
        background-color: $hoverBkColor;
        transition: background-color 0.35s ease-out;
    }

    &:active {
        background-color: $activeBkColor;
    }
}

@mixin scrollBar {
    &::-webkit-scrollbar-track {
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #0003;
        border-radius: 10px;
        transition: background-color 0.2s ease-in-out;

        &:hover {
            background-color: rgba(0, 0, 0, 0.292);
        }
    }

    &::-webkit-scrollbar {
        width: 6px;
    }
}

.edit-img {
    @include setWidHei(60px !important, 60px !important);
    object-fit: cover;
    margin: 0 2px;
    cursor: pointer;
}

.disableSelect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@mixin card($wid, $hei, $borRa) {
    @include setWidHei($wid, $hei);
    border-radius: $borRa;
    background-color: #fff;
    box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, 0.04), 0px 8px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 30px;
    box-sizing: border-box;
}

.input-icon {
    position: absolute;
    left: 0;
    color: #c0c4cc;
    width: 30px;
}

.img-browser {
    object-fit: cover;
    @include setWidHei(750px, 520px);
    @include noselect;
}

.active-listLi--item {
    background-color: rgba(193, 191, 191, 0.114);
}

.spinMess {
    font-size: 2.5rem;
    animation: loading-rotate__spinMess 1s linear infinite;
}

@keyframes loading-rotate__spinMess {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

.icon-error {
    font-size: 3.5rem;
    vertical-align: middle;
}

.chat-message {
    &__emotion {
        margin-right: 2px;
        vertical-align: middle;
        @include setWidHei(20px, 20px);
    }

    &__img {
        width: 110px !important;
        height: 120px !important;
        object-fit: cover;
        cursor: pointer;
    }
}

.chat-edit__emotion {
    margin: 0 2px;
    vertical-align: middle;
    @include setWidHei(20px, 20px);
}

.isChecked {
    background-color: #f50c0cc4;
    color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
}

%checked {
    border: 1px solid #e0e0e0;
    color: #6e6b6b;
}

.disabledChecked {
    @extend %checked;
    cursor: not-allowed;
}

.noChecked {
    cursor: pointer;
    @extend %checked;

    .icon-checked {
        display: none;
    }

    &:hover {
        .icon-checked {
            display: block;
        }
    }
}

@mixin emotion($wid, $hei) {
    @include noselect();
    @include setWidHei($wid, $hei);
    object-fit: cover;
    vertical-align: middle;
    margin: 0 2px 2px;
}

.dynamic-text__emotion {
    @include emotion(20px, 20px);
}

.dynamic-comment__emotion {
    @include emotion(18px, 18px);
}
